import { isTurnChild } from '../utils'
import { lifecycle } from '../lifeCycle'
export const turnApp = async () => {
  // console.log(window.__CURRENT_SUB_APP__);
  // console.log(window.location.pathname);
  // console.log(window.__CURRENT_SUB_APP__ === window.location.pathname);
  // if(window.__CURRENT_SUB_APP__ === window.location.pathname) return
  console.log('路由切换了');
  if (isTurnChild()) {
    // 微前端的生命周期执行
    await lifecycle()
  }
}
